Properties |
TimeRanges | - buffered
- The buffered attribute must return
a new static normalized TimeRanges object that represents the
intersection of the ranges of the media resources of the
slaved media elements that the user agent has buffered, at the time the attribute is
evaluated.
|
double | - currentTime
- The currentTime attribute must
return the media controller position on getting, and on setting must seek the
media controller to the new value.
|
double | - defaultPlaybackRate
- The defaultPlaybackRate
attribute, on getting, must return the MediaController's media controller
default playback rate, and on setting, must set the MediaController's
media controller default playback rate to the new value, then queue a
task to fire a simple event named ratechange at the
MediaController.
|
unrestricted double | - duration
- The duration attribute must return
the media controller duration.
|
boolean | - muted
- The muted attribute, on getting, must
return the MediaController's media controller mute override, and on
setting, must set the MediaController's media controller mute override
to the new value and queue a task to fire a simple event named volumechange at the
MediaController.
|
EventHandler | oncanplay |
EventHandler | oncanplaythrough |
EventHandler | ondurationchange |
EventHandler | onemptied |
EventHandler | onended |
EventHandler | onloadeddata |
EventHandler | onloadedmetadata |
EventHandler | onpause |
EventHandler | onplay |
EventHandler | onplaying |
EventHandler | onratechange |
EventHandler | ontimeupdate |
EventHandler | onvolumechange |
EventHandler | onwaiting |
boolean | - paused
- The paused attribute must return
true if the MediaController object is a paused media controller, and
false otherwise.
|
double | - playbackRate
- The playbackRate attribute, on
getting, must return the MediaController's media controller playback
rate, and on setting, must set the MediaController's media controller
playback rate to the new value, then queue a task to fire a simple
event named ratechange at the
MediaController.
|
MediaControllerPlaybackState | - playbackState
- The playbackState attribute
must return the value to which it was most recently set. When the MediaController
object is created, the attribute must be set to the value "waiting". The value is updated by the report the
controller state algorithm below.
|
TimeRanges | - played
- The played attribute must return a
new static normalized TimeRanges object that represents the union of the
ranges of points on the media timelines of the media resources of the slaved media elements that the
user agent has so far reached through the usual monotonic increase of their current playback positions during normal playback, at the time the
attribute is evaluated.
|
unsigned short | - readyState
- The readyState attribute must
return the value to which it was most recently set. When the MediaController object
is created, the attribute must be set to the value 0 (HAVE_NOTHING). The value is updated by the report the
controller state algorithm below.
|
TimeRanges | - seekable
- The seekable attribute must return
a new static normalized TimeRanges object that represents the
intersection of the ranges of the media resources of the
slaved media elements that the user agent is able to seek to, at the time the
attribute is evaluated.
|
double | - volume
- The volume attribute, on getting,
must return the MediaController's media controller volume multiplier,
and on setting, if the new value is in the range 0.0 to 1.0 inclusive, must set the
MediaController's media controller volume multiplier to the new value
and queue a task to fire a simple event named volumechange at the
MediaController.
|
Operations |
void | - pause()
- When the pause() method is invoked,
if the MediaController is a playing media controller then the user agent
must change the MediaController into a paused media controller,
queue a task to fire a simple event named pause at the MediaController, and then
report the controller state of the MediaController.
|
void | - play()
- When the play() method is invoked, the
user agent must invoke the play() method of each slaved media element in turn, and then invoke the unpause method of the MediaController.
|
void | - unpause()
- When the unpause() method is
invoked, if the MediaController is a paused media controller, the user
agent must change the MediaController into a playing media controller,
queue a task to fire a simple event named play at the MediaController, and then
report the controller state of the MediaController.
|